package com.appjishu.web.model;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.appjishu.web.constant.Const;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;
import java.time.LocalDateTime;


/** 
* @author echo(goldliclass@163.com)
* @version 创建时间：2022年8月26日 下午8:59:11 
* 类说明 
*/
@ApiModel("用户")
@TableName("fly_user")
public class User {
	@TableId(type= IdType.AUTO)
	@Excel(name = "id")
	@ApiModelProperty(value = "id")
	private Long id;
	@Excel(name = "创建时间")
	@ApiModelProperty(value = "创建时间")
	@DateTimeFormat(pattern = Const.DATE_TIME_FORMAT)
	private LocalDateTime createTime;
	@Excel(name = "修改时间")
	@ApiModelProperty(value = "修改时间")
	@DateTimeFormat(pattern = Const.DATE_TIME_FORMAT)
	private LocalDateTime updateTime;
	@Excel(name = "状态")
	@ApiModelProperty(value = "状态")
	private Integer status;
	@Excel(name = "密码")
	@ApiModelProperty(value = "密码")
	private String password;
	@Excel(name = "账号")
	@ApiModelProperty(value = "账号")
	private String username;
	@Excel(name = "图片地址")
	@ApiModelProperty(value = "图片地址")
	private String avatar;
	@Excel(name = "姓名")
	@ApiModelProperty(value = "姓名")
	private String name;
	@Excel(name = "积分")
	@ApiModelProperty(value = "积分")
	private Integer score;
	@Excel(name = "班级名字")
	@ApiModelProperty(value = "班级名字")
	private String className;
	@Excel(name = "邮箱")
	@ApiModelProperty(value = "邮箱")
	private String email;
	@Excel(name = "openid")
	@ApiModelProperty(value = "openid")
	private String openid;
	@Excel(name = "个人签名")
	@ApiModelProperty(value = "个人签名")
	private String personalSignature;
	@Excel(name = "班级id")
	@ApiModelProperty(value = "班级id")
	private Long classId;
	@Excel(name = "专业id")
	@ApiModelProperty(value = "专业id")
	private Long specialityId;
	@Excel(name = "学院id")
	@ApiModelProperty(value = "学院id")
	private Long collegeId;

	@Excel(name = "上线时间")
	@ApiModelProperty(value = "上线时间")
	private Timestamp loginTime;

	@Excel(name = "下线时间")
	@ApiModelProperty(value = "下线时间")
	private Timestamp downlineTime;

	@Excel(name = "上线次数")
	@ApiModelProperty(value = "上线次数")
	private Long onlineTimes;

	@Excel(name = "设备名称")
	@ApiModelProperty(value = "设备名称")
	private String deviceType;

	@Excel(name = "在线时长")
	@ApiModelProperty(value = "在线时长")
	private Long duration;

	@Excel(name = "累计在线时长")
	@ApiModelProperty(value = "累计在线时长")
	private Long AllDuration;

	@Excel(name = "学号")
	@ApiModelProperty(value = "学号")
	private String stuNumber;

	public String getStuNumber() {
		return stuNumber;
	}

	public void setStuNumber(String stuNumber) {
		this.stuNumber = stuNumber;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public LocalDateTime getCreateTime() {
		return createTime;
	}

	public void setCreateTime(LocalDateTime createTime) {
		this.createTime = createTime;
	}

	public LocalDateTime getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(LocalDateTime updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getScore() {
		return score;
	}

	public void setScore(Integer score) {
		this.score = score;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}

	public String getPersonalSignature() {
		return personalSignature;
	}

	public void setPersonalSignature(String personalSignature) {
		this.personalSignature = personalSignature;
	}

	public Long getClassId() {
		return classId;
	}

	public void setClassId(Long classId) {
		this.classId = classId;
	}

	public Long getSpecialityId() {
		return specialityId;
	}

	public void setSpecialityId(Long specialityId) {
		this.specialityId = specialityId;
	}

	public Long getCollegeId() {
		return collegeId;
	}

	public void setCollegeId(Long collegeId) {
		this.collegeId = collegeId;
	}

	public Timestamp getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(Timestamp loginTime) {
		this.loginTime = loginTime;
	}

	public Timestamp getDownlineTime() {
		return downlineTime;
	}

	public void setDownlineTime(Timestamp downlineTime) {
		this.downlineTime = downlineTime;
	}

	public Long getOnlineTimes() {
		return onlineTimes;
	}

	public void setOnlineTimes(Long onlineTimes) {
		this.onlineTimes = onlineTimes;
	}

	public String getDeviceType() {
		return deviceType;
	}

	public void setDeviceType(String deviceType) {
		this.deviceType = deviceType;
	}

	public Long getDuration() {
		return duration;
	}

	public void setDuration(Long duration) {
		this.duration = duration;
	}

	public Long getAllDuration() {
		return AllDuration;
	}

	public void setAllDuration(Long allDuration) {
		this.AllDuration = allDuration;
	}
}
